package com.ccp.dev.workflow.dao;

import com.ccp.dev.core.basic.base.IBaseMapper;
import com.ccp.dev.workflow.model.ReminderState;
import org.apache.ibatis.annotations.Param;

/**
 * ClassDescribe:
 *
 * @author :jiayueqiao
 * Date: 2019-10-24
 * Since:1
 */
public interface ReminderStateDao extends IBaseMapper<ReminderState,String> {
    /**
     * 清除过期的任务状态数据
     */
    void delExpiredTaskReminderState();


    /**
     * 取得任务执行的次数
     * @param taskId
     * @param userId
     * @param remindType
     * @return
     */
    Integer getAmountByUserTaskId(@Param("taskId") String taskId, @Param("userId") String userId, @Param("remindType") int remindType);
}
